<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>

<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<html:html>
    <head>
        <title>Gestion EDT - Divers</title>

        <link rel="stylesheet" type="text/css" href="resources/css/design.css" />
        <link rel="stylesheet" type="text/css" href="resources/css/design_print.css" media="print" />
        <link rel="stylesheet" type="text/css" href="resources/css/divers.css" />

        <script type="text/javascript" src="resources/js/script.js"></script>
    </head>
    <body>
        <jsp:include page="_menu.jsp" />

        <h2 class="titrePage">
            Liste des modules pour lesquels il y a au moins un
            groupe inscrit non affecté à une prestation
        </h2>

        <table class="liste" id="listeModules">
            <thead>
                <th>Module</th>
                <th>UE</th>
                <th>Groupes inscrits non affectés</th>
            </thead>
            <tbody>
                <logic:iterate id="module" name="UtilitairesForm" property="modules" indexId="i">

                    <tr class="${i%2==0 ? "paire" : "impaire"}">

                        <td style="background-color: ${module.bgColor};
                                   color: ${module.fontColor};">
                            ${module.libelle}
                        </td>
                        <td>${module.ue}</td>

                        <td>
                            <logic:iterate id="grpNonAff" name="module" property="grpInscritsSansPrest" indexId="j">
                                <c:if test="${j != 0}"> ; </c:if>
                                ${grpNonAff.libelle}
                            </logic:iterate>
                        </td>
                    </tr>
                </logic:iterate>
            </tbody>
        </table>

    </body>
</html:html>
